package com.sys.ibatis.test;

public class FlowThread extends Thread{
    public Object flowvo = null;
    public boolean rflag=true;
	public FlowThread(Object vo){
		flowvo = vo;
	}
	
	public void run(){
		String flowid = "";
	    try{
	    	while(Thread.interrupted()){
	    		System.out.println("线程被停止了");
	    		throw new InterruptedException();
	    	}
	    	while(rflag){
	    		boolean flag = true;
	    		for(int i=0;i<100000;i++){
	    			if(i%10000==0){
	    				System.out.println("1111111");
	    			}
	    		}
	    		sleep(0);
	    	}
	    }catch(InterruptedException e){
	    	System.out.println("线程停止了");
	    }
	    
		finally{
			System.out.println("线程停止了1111");
		}
		
	}
	
	
}
